Advertisement
tudt93

.vimrc

Dec 19th, 2019
1,412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.08 KB | None | 0 0
  1. set nocompatible
  2.  
  3. " Helps force plugins to load correctly when it is turned back on below
  4. filetype off
  5.  
  6. " TODO: Load plugins here (pathogen or vundle)
  7.  
  8. " Turn on syntax highlighting
  9. syntax on
  10.  
  11. " For plugins to load correctly
  12. filetype plugin indent on
  13.  
  14. " TODO: Pick a leader key
  15. " let mapleader = ","
  16.  
  17. " Security
  18. set modelines=0
  19.  
  20. " Show line numbers
  21. set number
  22.  
  23. " Show file stats
  24. set ruler
  25.  
  26. " Blink cursor on error instead of beeping (grr)
  27. set visualbell
  28.  
  29. " Encoding
  30. set encoding=utf-8
  31.  
  32. " Whitespace
  33. set wrap
  34. set textwidth=79
  35. set formatoptions=tcqrn1
  36. set tabstop=2
  37. set shiftwidth=2
  38. set softtabstop=2
  39. set expandtab
  40. set noshiftround
  41.  
  42. " Cursor motion
  43. set scrolloff=3
  44. set backspace=indent,eol,start
  45. set matchpairs+=<:> " use % to jump between pairs
  46. runtime! macros/matchit.vim
  47.  
  48. " Move up/down editor lines
  49. nnoremap j gj
  50. nnoremap k gk
  51.  
  52. " Allow hidden buffers
  53. set hidden
  54.  
  55. " Rendering
  56. set ttyfast
  57.  
  58. " Status bar
  59. set laststatus=2
  60.  
  61. " Last line
  62. set showmode
  63. set showcmd
  64.  
  65. " Searching
  66. nnoremap / /\v
  67. vnoremap / /\v
  68. set hlsearch
  69. set incsearch
  70. set ignorecase
  71. set smartcase
  72. set showmatch
  73. map <leader><space> :let @/=''<cr> " clear search
  74.  
  75. " Remap help key.
  76. inoremap <F1> <ESC>:set invfullscreen<CR>a
  77. nnoremap <F1> :set invfullscreen<CR>
  78. vnoremap <F1> :set invfullscreen<CR>
  79.  
  80. " Textmate holdouts
  81.  
  82. " Formatting
  83. map <leader>q gqip
  84.  
  85. " Visualize tabs and newlines
  86. set listchars=tab:▸\ ,eol:¬
  87. " Uncomment this to enable by default:
  88. " set list " To enable by default
  89. " Or use your leader key + l to toggle on/off
  90. map <leader>l :set list!<CR> " Toggle tabs and EOL
  91.  
  92. " Color scheme (terminal)
  93. set t_Co=256
  94. set background=dark
  95. let g:solarized_termcolors=256
  96. let g:solarized_termtrans=1
  97. " put https://raw.github.com/altercation/vim-colors-solarized/master/colors/solarized.vim
  98. " in ~/.vim/colors/ and uncomment:
  99. " colorscheme solarized
  100.  
  101. set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/
  102.  
  103. " Always show statusline
  104. set laststatus=2
  105.  
  106. " Use 256 colours (Use this setting only if your terminal supports 256
  107. " colours)
  108. set t_Co=256
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement