Advertisement
Regeneric

Untitled

Sep 20th, 2020
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. execute pathogen#infect()
  2. syntax enable "enables syntax processing
  3. filetype plugin indent on
  4.  
  5. let g:powerline_pycmd = 'py3'
  6.  
  7. set laststatus=2 "always show the powerline statusbar in all windows
  8. set showtabline=2 "always display the tabline, even if there is only one tab
  9. set noshowmode "Hide the default mode text (e.g. -- INSERT -- below the statusline)
  10. set rtp+=/usr/lib/python3.7/site-packages/powerline/bindings/vim
  11.  
  12. python3 from powerline.vim import setup as powerline_setup
  13. python3 powerline_setup()
  14. python3 del powerline_setup
  15.  
  16. if has('gui_running')
  17. set background=light
  18. else
  19. set background=dark
  20. endif
  21.  
  22. " set t_Co=256 " forces 256 colors so I don't have to change $TERM
  23.  
  24. colorscheme gruvbox
  25.  
  26. " makes the background disapear (so that it uses default terminal color and transparency)
  27. " hi Normal ctermbg=NONE
  28.  
  29. set tabstop=2 " number of visual spaces per TAB
  30. set softtabstop=4 " number of spaces in tab when editing
  31. set shiftwidth=4 " number of spaces used for autoindent, command: <<, >>, == (auto entire doc: gg=G )
  32. set expandtab " tabs are converted into spaces
  33. set number " show line numbers
  34. " set relativenumber " show relative distances to make commands such as 8dd faster. Abslut number is still shown on curor line
  35. set showcmd " show command in bottom bar
  36. set cursorline " highlight current line
  37. set wildmenu " visual autocomplete for command menu
  38. set lazyredraw " redraw only when we need to
  39. set showmatch " Highlight matching {[()]} probably enabled by deffault as well
  40. set incsearch " search as characters are entered
  41. set hlsearch " highlight matches
  42.  
  43. " turn of search highlight
  44. nnoremap <leader><space> :nohlsearch<CR>
  45.  
  46. set ttyfast " send more characters for redraws
  47. set mouse=a " enable mouse
  48.  
  49. " set this t othe name of your terminal that supports mouse codes.
  50. " must be one of: xterm, xterm2, netterm, dec, jsbterm, pterm
  51. " use only if problems without it arise
  52. " set ttymouse=xterm2
  53.  
  54. set foldenable " enable folding
  55. set foldlevelstart=10 " open most folds by default
  56. set foldnestmax=10 " 10 nested fold max
  57.  
  58. " space open/closes folds
  59. nnoremap <space> za
  60.  
  61. set foldmethod=indent " fold based on indent level alternatives are: marker, manual, expr, syntax, diff, run :help foldmethod for info
  62. nnoremap gV `[v`]
  63.  
  64. let mapleader="," " leader is comma, \ is inconvinient on a swedish keyboard
  65.  
  66. map <C-c> :s/^/\/\//<Enter>
  67. map <C-u> :s/^\/\///<Enter>
  68.  
  69. map <C-e> :q!<Enter>
  70. map <C-w> :wq<Enter>
  71.  
  72. map <F9> :make<Enter>
  73. map <F5> :w<Enter>
  74.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement