Last active
March 6, 2019 02:55
-
-
Save halfelf/2e9bf5cb5093cfed2e52be90341c744a to your computer and use it in GitHub Desktop.
custom vim config for amix/vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set pastetoggle=<F3> | |
set nu | |
"""""""""""""""""c/cpp/cu settings"""""""""""""""""""""""""""""""""" | |
" check cpp code applying c++11 standard | |
let g:syntastic_cpp_compiler = 'clang++' | |
let g:syntastic_cpp_compiler_options = '-std=c++14 -stdlib=libc++' | |
" on some system: | |
" let g:syntastic_cpp_compiler = 'g++' | |
" let g:syntastic_cpp_compiler_options = '-std=c++14' | |
" cuda | |
" let g:syntastic_cuda_checkers = ["nvcc"] | |
" let g:syntastic_cuda_config_file = '/home/halfelf/.vim_runtime/cuda_config' # write "--std\nc++14" in it | |
" let g:syntastic_cpp_include_dirs = ["/usr/local/cuda/include"] | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
colorscheme wombat256i | |
" Nerdtree on left | |
let g:NERDTreeWinPos = "left" | |
" Open nerdtree hotkey: ,nn | |
nmap <leader>nn :NERDTree<cr> | |
" https://github.com/jaxbot/semantic-highlight.vim.git | |
nmap <leader>sh :SemanticHighlightToggle<cr> | |
let g:semanticTermColors = [1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 22, 27, 28, 29, 30, 34, 46, 82, 87, 93, 94, 100, 106, 111, 112, 117, 118, 136, 141, 142, 154, 160, 190, 196, 226] | |
" auto chomp when saving | |
autocmd BufWritePre * %s/\s\+$//e | |
" ruby indent | |
autocmd FileType ruby setlocal et sta sw=2 sts=2 | |
" disable folding | |
set nofoldenable | |
""""""""" additional plugins: """"""""""" | |
" cd .vim_runtime/source_non_forked | |
" tab to complete | |
" git clone https://github.com/ervandew/supertab.git | |
" ruby | |
" git://github.com/vim-ruby/vim-ruby.git | |
" auto insert `end` for ruby block | |
" git://github.com/tpope/vim-endwise.git | |
""""""""""""""""""""""""""""""""""""""""" | |
set mouse=a | |
autocmd VimEnter * SemanticHighlightToggle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment