mirror of
1
0
Fork 0

Done some optimizations to Windows support

This commit is contained in:
amix 2012-05-30 12:54:47 -04:00
parent 1315d5054e
commit f4341b9454
2 changed files with 9 additions and 14 deletions

View File

@ -37,13 +37,8 @@ endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Fast editing and reloading of vimrc configs
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if has("win16") || has("win32")
map <leader>e :e! ~/_vim_runtime/my_configs.vim<cr>
autocmd! bufwritepost vimrc source ~/_vim_runtime/my_configs.vim
else
map <leader>e :e! ~/.vim_runtime/my_configs.vim<cr>
autocmd! bufwritepost vimrc source ~/.vim_runtime/my_configs.vim
endif
map <leader>e :e! ~/.vim_runtime/my_configs.vim<cr>
autocmd! bufwritepost vimrc source ~/.vim_runtime/my_configs.vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@ -51,12 +46,7 @@ endif
" means that you can undo even when you close a buffer/VIM
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
try
if has("win16") || has("win32")
set undodir=~/_vim_runtime/temp_dirs/undodir
else
set undodir=~/.vim_runtime/temp_dirs/undodir
endif
set undodir=~/.vim_runtime/temp_dirs/undodir
set undofile
catch
endtry
@ -83,6 +73,11 @@ cnoremap <C-K> <C-U>
cnoremap <C-P> <Up>
cnoremap <C-N> <Down>
" Map ½ to something useful
map ½ $
cmap ½ $
imap ½ $
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Parenthesis/bracket

View File

@ -35,7 +35,7 @@ map <leader>f :MRU<CR>
" => YankRing
""""""""""""""""""""""""""""""
if has("win16") || has("win32")
let g:yankring_history_dir = 'C:\Windows\temp\yank_vim_dir'
" Don't do anything
else
let g:yankring_history_dir = '~/.vim_runtime/temp_dirs/'
endif