Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enable 'autochdir'; Enable more filetype to be recognized as C++11.

  • Loading branch information...
commit cffd99a8f91624d8d778ab3e83e4785fc1eddab7 1 parent 60e124a
@kennytm authored
Showing with 3 additions and 3 deletions.
  1. +0 −3  .gvimrc
  2. +3 −0  .vimrc
View
3  .gvimrc
@@ -34,9 +34,6 @@ nnoremap <C-H> :promptrepl<CR>
vnoremap <C-Z> <Esc>u
snoremap m m
-" Automatically cd into the directory that the file is in
-autocmd BufEnter * execute "chdir ".escape(expand("%:p:h"), ' ')
-
" Remove any trailing whitespace that is in the file
autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif
View
3  .vimrc
@@ -17,6 +17,7 @@ set incsearch
set hlsearch
set nohidden
set nowrap
+set autochdir
set colorcolumn=80,120
@@ -31,7 +32,9 @@ au FileType make set noexpandtab
" Switch on C++11
au BufNewFile,BufRead *.cpp set syntax=cpp11
+au BufNewFile,BufRead *.cc set syntax=cpp11
au BufNewFile,BufRead *.hpp set syntax=cpp11
+au BufNewFile,BufRead *.hh set syntax=cpp11
" Mozart/Oz
au BufNewFile,BufRead *.oz set syntax=oz
Please sign in to comment.
Something went wrong with that request. Please try again.