Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 3.06 KB | None | 0 0
  1. set nocompatible
  2. set t_Co=256 "t_te= t_ti= t_ut=
  3. set ghr=0
  4. filetype plugin indent on
  5. syntax on
  6. "set termguicolors
  7. set guifont=DejaVu_Sans_Mono:h11
  8. color gruvbox
  9. let g:airline_theme='gruvbox'
  10. autocmd VimResized * wincmd = "resize windows properly
  11.  
  12. "buftabline
  13. set hidden "hide buffers instead of close
  14. let g:buftabline_show = 1
  15. let g:buftabline_indicators = 1
  16. :hi link BufTabLineFill NONE
  17.  
  18. set rtp=~/.vim,~/.vim/after
  19. let g:ctrlp_custom_ignore = { 'dir': 'gradle$\', 'file': '\.obj$\|\.spv$|\.dll$|\.a$|\.rsp$|\.exe$'  }
  20. let g:ctrlp_working_path_mode = 'w' "search from pwd even if .git is present
  21.  
  22. set guioptions-=m  "remove menu bar
  23. set guioptions-=T  "remove toolbar
  24. set guioptions-=r  "remove right-hand scroll bar
  25. set guioptions-=L  "remove left-hand scroll bar
  26.  
  27. autocmd! BufNewFile,BufRead *.vs,*.fs set ft=glsl "glsl syntax
  28.  
  29. "c++ syntax
  30. let g:cpp_class_scope_highlight = 1
  31. let g:cpp_member_variable_highlight = 1
  32. let g:cpp_class_decl_highlight = 1
  33. let g:cpp_concepts_highlight = 1
  34.  
  35. let g:python_recommended_style=0 "stop python.vim from fucking with our settings
  36.  
  37. "au VimLeave * :!clear
  38.  
  39. "paste from yank register
  40. "noremap p "0p"
  41. "move tabs
  42. noremap <C-Down> :execute "bnext" <CR>
  43. noremap <C-Up> :execute "bprev" <CR>
  44. tnoremap <C-Down> <C-\><C-n>:bp<CR> "term
  45. tnoremap <C-Up> <C-\><C-n>:bp<CR> "term
  46. noremap , :
  47. noremap ' "
  48. "move to eol
  49. noremap å $
  50. " :,$s//foo/gc global confirm
  51. noremap æ :,%s/
  52. "highlight instance of word
  53. noremap ø *
  54. imap jk <Esc>
  55. imap kj <Esc>
  56.  
  57. "å bug
  58. let g:AutoPairsShortcutFastWrap='' "å bug
  59.  
  60. set laststatus=2 "when the last window will have a status line
  61. set ignorecase
  62. set smartcase
  63. set mouse=a "don't copy line numbers
  64. set clipboard^=unnamed,unnamedplus "shared clipboard
  65. set autoread "automatically read file changed outside of vim
  66. set wildmenu "command completion on wildchar
  67. set ruler
  68. set cmdheight=1 "only one command line
  69. set hid "hide unsaved buffers when opening new file, access with :ls :b[N]
  70. set number "display line number
  71. set cursorline "highlight the cursor line
  72. set noshowmode "don't show mode
  73. set ttyfast "fast scrolling
  74. set lazyredraw "don't redraw while running macros etc
  75.  
  76. set hlsearch "highlight search matches
  77. set smarttab "tabulate and delete properly
  78. set smartindent
  79. set softtabstop=2 "tab as spaces
  80. set shiftwidth=2 "tab as spaces
  81. set expandtab "tabulate properly in insert
  82. set shiftround "round indent to multiple of shiftwidth
  83. set ai "Auto indent"
  84. set si "Smart indent"
  85. set wrap "Wrap lines"
  86. set backspace=2 "backspace deletes properly
  87. set incsearch "dynamic search matching
  88. set showmatch "cursor jumps to matching brace when inserting one
  89. "set mat=2 "tenths of a second to blink when matching brackets
  90. set enc=utf-8 "encodings
  91. set fileencoding=utf-8
  92. set fileencodings=ucs-bom,utf8,prc
  93.  
  94. set ffs=unix,dos,mac
  95. set nobackup "don't do backups
  96. set nowritebackup "don't write backup while editing
  97. set noswapfile "no swap
  98. set shellslash "forward slash to expand file names
  99.  
  100. "set statusline+=%#warningmsg#
  101. "set statusline+=%{SyntasticStatuslineFlag()}
  102. "set statusline+=%*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement