Skip to content

Instantly share code, notes, and snippets.

@halfelf
Last active March 6, 2019 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halfelf/2e9bf5cb5093cfed2e52be90341c744a to your computer and use it in GitHub Desktop.
Save halfelf/2e9bf5cb5093cfed2e52be90341c744a to your computer and use it in GitHub Desktop.
custom vim config for amix/vimrc
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