]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: set global pwd with Cd/Cr and local LCd/LCr
[dotfiles.git] / vim / vimrc
index 7010d5fe058b9ed3bf3b223f4a10ed5795f80b33..2eb44cde9b66dc30d30a8ff70c29aa33e6cf2407 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -68,6 +68,9 @@ Plugin 'nathanaelkane/vim-indent-guides'
 Plugin 'alx741/vinfo'
 Plugin 'vim-scripts/mediawiki.vim'
 Plugin 'derekwyatt/vim-protodef'
+Plugin 'rdnetto/ycm-generator'
+" needs editing colorscheme
+" Plugin 'jeaye/color_coded'
 
 " remove entries first
 set runtimepath -=$HOME/.vim
@@ -85,9 +88,6 @@ syntax on
 colorscheme badwolf
 
 " options {{{1
-" put $ and the end of text to be replaced with 'cw' and the likes
-set cpoptions+=$
-
 " moving around, searching and patterns {{{2
 set incsearch           " show match for partly typed search command
 set ignorecase          " ignore case when using a search pattern
@@ -485,8 +485,10 @@ inoremap <C-C> <Esc>gUiwgi
 nmap <silent> <leader>qq :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
 
 " commands {{{1
-command! Cd lcd %:h
-command! Cr execute('lcd ' . FindGitDirOrHome())
+command! Cd cd %:h
+command! Cr execute('cd ' . FindGitDirOrHome())
+command! LCd lcd %:h
+command! LCr execute('lcd ' . FindGitDirOrHome())
 
 " plugins options {{{1
 " airline {{{2