Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moving out autocmd and keybindings toown files in .vim folder

  • Loading branch information...
commit 637ded94711d5c764bb1c2756627815a043917cf 1 parent 383e41c
Dennis Wilkins authored
View
87 .vimrc
@@ -1,11 +1,11 @@
-"------------------------------------------------------------------[General]----
+"------------------------------------------------------------------[General]----"
+source ~/.vim/vundles.vim
set secure "locks down the exrc setting
set exrc "enable cwd .vimrc files
set nocompatible
set encoding=utf8
-source ~/.vundles
syntax on
filetype plugin indent on
@@ -84,85 +84,6 @@ set wildmenu
set showmatch
set matchtime=2
-nnoremap <silent> <Tab> :wincmd w<CR>
-nnoremap <silent> <S-Tab> :wincmd W<CR>
-
-map j gj
-map k gk
-
-map H ^
-map L $
-
-map gf :e <cfile><CR>
-
-map <Leader>n :NERDTree<CR>
-vnoremap < <gv
-vnoremap > >gv
-
-"map <C-F> :CommandT<CR>
-map <C-F> :CommandTFlush<CR>:CommandT<CR>
-map <C-T> :tab new<CR>
-map <C-P> :e#<CR>
-nmap <F1> <Esc>
-imap <F1> <Esc>
-
-"---------------------------------------------------------------------------
-"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%[File Types]%%%%
-"---------------------------------------------------------------------------
-
-
-"-----------------------------------------------------------------[HTML]----
-autocmd BufNewFile,BufRead *.htm,*.html set filetype=html.css.javascript
-autocmd FileType html.css.javascript set nocindent autoindent smartindent
-
-"------------------------------------------------------------------[CSS]----
-autocmd BufNewFile,BufRead *.css,*.less set filetype=css
-
-"-----------------------------------------------------------------[YAML]----
-
-"-----------------------------------------------------------------[HAML]----
-autocmd BufNewFile,BufRead *.haml set filetype=haml
-autocmd FileType haml set makeprg=haml\ %:p\ %:p:s?haml?html?
-
-"-----------------------------------------------------------------[SASS]----
-autocmd BufNewFile,BufRead *.sass set filetype=sass
-
-"-----------------------------------------------------------[JavaScript]----
-autocmd BufNewFile,BufRead *.js set filetype=javascript
-autocmd FileType javascript set nocindent autoindent smartindent
-
-"---------------------------------------------------------[Coffeescript]----
-autocmd BufNewFile,BufRead *.coffee set filetype=coffee
-
-"-----------------------------------------------------------------[Ruby]----
-"make -> ruby -c
-autocmd BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec,[rR]akefile,*.rake,*.thor set filetype=ruby
-autocmd FileType ruby set dictionary=$HOME/.vim/dict/ruby.dict
-autocmd FileType ruby set omnifunc=rubycomplete#Complete
-
-"---------------------------------------------------------[ActionScript]----
-autocmd BufNewFile,BufRead *.as set filetype=actionscript
-autocmd FileType actionscript set omnifunc=actionscriptcomplete#Complete
-autocmd FileType actionscript set complete=k$HOME/.vim/dict/actionscript.dict,.,w,b,u,t,i
-autocmd FileType actionscript set makeprg=as3compile\ %:p\ -X\ 320\ -Y\ 240\ -o\ %:p:s?as?swf?
-
-"---------------------------------------------------------------[Python]----
-"autocmd BufNewFile,BufRead *.py set filetype=python
-autocmd FileType python let python_highlight_space_errors=1
-autocmd FileType python let python_highlight_all=1
-autocmd FileType python set omnifunc=pythoncomplete#Complete
-
-"--------------------------------------------------------------------[C]----
-
-"----------------------------------------------------------------[Obj-C]----
-
-"-------------------------------------------------------------[Markdown]----
-autocmd BufNewFile,BufRead *.md,*.mkd,*.markdown set filetype=markdown
-autocmd FileType markdown set wrap linebreak
-
-"---------------------------------------------------------[ Processing ]----
-autocmd BufNewFile,BufRead *.pde set filetype=java
-
-"-----------------------------------------------------------[ Protobuf ]----
-autocmd BufNewFile,BufRead *.proto set filetype=proto
+source ~/.vim/autocmd.vim
+source ~/.vim/keybindings.vim
View
60 autocmd.vim
@@ -0,0 +1,60 @@
+"---------------------------------------------------------------------------
+"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%[File Types]%%%%
+"---------------------------------------------------------------------------
+
+"-----------------------------------------------------------------[HTML]----
+autocmd BufNewFile,BufRead *.htm,*.html set filetype=html.css.javascript
+autocmd FileType html.css.javascript set nocindent autoindent smartindent
+
+"------------------------------------------------------------------[CSS]----
+autocmd BufNewFile,BufRead *.css,*.less set filetype=css
+
+"-----------------------------------------------------------------[YAML]----
+
+"-----------------------------------------------------------------[HAML]----
+autocmd BufNewFile,BufRead *.haml set filetype=haml
+autocmd FileType haml set makeprg=haml\ %:p\ %:p:s?haml?html?
+
+"-----------------------------------------------------------------[SASS]----
+autocmd BufNewFile,BufRead *.sass set filetype=sass
+
+"-----------------------------------------------------------[JavaScript]----
+autocmd BufNewFile,BufRead *.js set filetype=javascript
+autocmd FileType javascript set nocindent autoindent smartindent
+
+"---------------------------------------------------------[Coffeescript]----
+autocmd BufNewFile,BufRead *.coffee set filetype=coffee
+
+"-----------------------------------------------------------------[Ruby]----
+"make -> ruby -c
+autocmd BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec,[rR]akefile,*.rake,*.thor set filetype=ruby
+autocmd FileType ruby set dictionary=$HOME/.vim/dict/ruby.dict
+autocmd FileType ruby set omnifunc=rubycomplete#Complete
+
+"---------------------------------------------------------[ActionScript]----
+autocmd BufNewFile,BufRead *.as set filetype=actionscript
+autocmd FileType actionscript set omnifunc=actionscriptcomplete#Complete
+autocmd FileType actionscript set complete=k$HOME/.vim/dict/actionscript.dict,.,w,b,u,t,i
+autocmd FileType actionscript set makeprg=as3compile\ %:p\ -X\ 320\ -Y\ 240\ -o\ %:p:s?as?swf?
+
+"---------------------------------------------------------------[Python]----
+"autocmd BufNewFile,BufRead *.py set filetype=python
+autocmd FileType python let python_highlight_space_errors=1
+autocmd FileType python let python_highlight_all=1
+autocmd FileType python set omnifunc=pythoncomplete#Complete
+
+"--------------------------------------------------------------------[C]----
+
+"----------------------------------------------------------------[Obj-C]----
+
+"-------------------------------------------------------------[Markdown]----
+autocmd BufNewFile,BufRead *.md,*.mkd,*.markdown set filetype=markdown
+autocmd FileType markdown set wrap linebreak
+
+"---------------------------------------------------------[ Processing ]----
+autocmd BufNewFile,BufRead *.pde set filetype=java
+
+"-----------------------------------------------------------[ Protobuf ]----
+autocmd BufNewFile,BufRead *.proto set filetype=proto
+
+
View
2  install.sh
@@ -20,7 +20,7 @@ makeLinks()
ln -s $DIR/.jshintrc ~/
ln -s $DIR/.jsl.conf ~/
ln -s $DIR/.vimrc ~/
- ln -s $DIR/.vundles ~/
+ ln -s $DIR/*.vim ~/.vim/
ln -s $DIR/.zshrc ~/
cp $DIR/.gitconfig ~/.gitconfig
View
22 keybindings.vim
@@ -0,0 +1,22 @@
+
+nnoremap <silent> <Tab> :wincmd w<CR>
+nnoremap <silent> <S-Tab> :wincmd W<CR>
+
+map j gj
+map k gk
+
+map H ^
+map L $
+
+map gf :e <cfile><CR>
+
+map <Leader>n :NERDTree<CR>
+vnoremap < <gv
+vnoremap > >gv
+
+"map <C-F> :CommandT<CR>
+map <C-F> :CommandTFlush<CR>:CommandT<CR>
+map <C-T> :tab new<CR>
+map <C-P> :e#<CR>
+nmap <F1> <Esc>
+imap <F1> <Esc>
View
0  .vundles → vundles.vim
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.