xonecas.io
2495
Xg

xonecas.github.com / commit 06233f1

updated vimrc post

xonecas2013-03-25 06233f125d769f4a05112240b26a847ce8d623e0 parent 45a07f4

3 files changed

_posts/2013-03-20-my-vimrc.markdown+19−5
@@ -20,7 +20,8 @@ I think I got it pretty close:
2020 syntax on
2121 filetype plugin indent on
2222 set nocompatible
23- set modelines=0
23+ set modeline
24+ set modelines=5
2425 set encoding=utf-8
2526 set relativenumber
2627 set guioptions=
@@ -31,6 +32,7 @@ I think I got it pretty close:
3132 set incsearch
3233 set smartcase
3334 set smartindent
35+ set hlsearch
3436 set autoindent
3537 set expandtab
3638 set smarttab
@@ -66,8 +68,15 @@ I think I got it pretty close:
6668 map <leader>x :ToggleBg<CR>
6769 map <leader>c :ToggleScheme<CR>
6870 map <leader>n :NERDTreeToggle<CR>
69- map <leader>] :tabnext<CR>
70- map <leader>[ :tabprevious<CR>
71+ " === thanks Ian, http://statico.github.com/vim.html
72+ map <leader>] :bnext<CR>
73+ map <leader>[ :bprev<CR>
74+ nmap <leader>e :e#<CR>
75+ nmap j gj
76+ nmap k gk
77+ nmap <leader>h :nohlsearch<CR>
78+ nmap <leader>s :SyntasticCheck<CR>
79+ nmap <leader>p :CtrlPBuffer<CR>
7180 " === config vars ===
7281 let g:indent_guides_guide_size = 1
7382 " === colors ===
@@ -77,8 +86,7 @@ I think I got it pretty close:
7786 if !has('gui_running')
7887 set listchars=tab:▸\ ,eol:¬,trail:⋅
7988 set background=dark
80- " nocto adapts to the term env.
81- colorscheme noctu
89+ colorscheme shiny-ninja
8290 if &term =~ "xterm"
8391 set t_Co=256
8492 if has("terminfo")
@@ -92,6 +100,10 @@ I think I got it pretty close:
92100 endif
93101 " === auto commands ===
94102 au BufNewFile,BufRead *.jsm set filetype=javascript
103+ au BufNewFile,BufRead *.less syn cluster sassCssAttributes add=@cssColors
104+ " === syntastic
105+ " let g:syntastic_<filetype>_checkers=['<checker-name>']
106+ let g:syntastic_javascript_checkers=['jslint']
95107 {% endhighlight %}
96108
97109 Here is a list of dependencies to reproduce this setup:
@@ -99,3 +111,5 @@ Here is a list of dependencies to reproduce this setup:
99111 + [shiny-ninja](/assets/shiny-ninja.vim)
100112 + [hemisu](https://github.com/noahfrederick/Hemisu)
101113 + [noctu](https://github.com/noahfrederick/vim-noctu)
114+
115+*Note*: Post updated on March 25th, 2013
assets/vimrc+17−5
@@ -3,7 +3,8 @@ call pathogen#infect()
33 syntax on
44 filetype plugin indent on
55 set nocompatible
6-set modelines=0
6+set modeline
7+set modelines=5
78 set encoding=utf-8
89 set relativenumber
910 set guioptions=
@@ -14,6 +15,7 @@ set visualbell t_vb=
1415 set incsearch
1516 set smartcase
1617 set smartindent
18+set hlsearch
1719 set autoindent
1820 set expandtab
1921 set smarttab
@@ -49,8 +51,15 @@ command! ToggleScheme :call ToggleScheme()
4951 map <leader>x :ToggleBg<CR>
5052 map <leader>c :ToggleScheme<CR>
5153 map <leader>n :NERDTreeToggle<CR>
52-map <leader>] :tabnext<CR>
53-map <leader>[ :tabprevious<CR>
54+" === thanks Ian, http://statico.github.com/vim.html
55+map <leader>] :bnext<CR>
56+map <leader>[ :bprev<CR>
57+nmap <leader>e :e#<CR>
58+nmap j gj
59+nmap k gk
60+nmap <leader>h :nohlsearch<CR>
61+nmap <leader>s :SyntasticCheck<CR>
62+nmap <leader>p :CtrlPBuffer<CR>
5463 " === config vars ===
5564 let g:indent_guides_guide_size = 1
5665 " === colors ===
@@ -60,8 +69,7 @@ call ToggleScheme()
6069 if !has('gui_running')
6170 set listchars=tab:▸\ ,eol:¬,trail:⋅
6271 set background=dark
63- " nocto adapts to the term env.
64- colorscheme noctu
72+ colorscheme shiny-ninja
6573 if &term =~ "xterm"
6674 set t_Co=256
6775 if has("terminfo")
@@ -75,3 +83,7 @@ if !has('gui_running')
7583 endif
7684 " === auto commands ===
7785 au BufNewFile,BufRead *.jsm set filetype=javascript
86+au BufNewFile,BufRead *.less syn cluster sassCssAttributes add=@cssColors
87+" === syntastic
88+" let g:syntastic_<filetype>_checkers=['<checker-name>']
89+let g:syntastic_javascript_checkers=['jslint']
css/syntax.less+2−1
@@ -4,7 +4,8 @@
44 .highlight pre {
55 padding: 5px 0;
66 .border-radius(4px);
7- background: rgb(33, 36, 41); color: #f8f8f2;
7+ background: rgb(33, 36, 41);
8+ color: #f8f8f2;
89 }
910 .highlight .c { color: #75715e } /* Comment */
1011 .highlight .err { color: #960050; background-color: #1e0010 } /* Error */