Skip to content

Instantly share code, notes, and snippets.

@reinaldons
Last active January 19, 2022 16:04
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 reinaldons/a997ae8a0c4b7d4c9cbd52a90390b171 to your computer and use it in GitHub Desktop.
Save reinaldons/a997ae8a0c4b7d4c9cbd52a90390b171 to your computer and use it in GitHub Desktop.
My VIM as Python IDE
set nocompatible
filetype off
set dir=~/.vim/tmp//
" Alias
nnoremap <C-Left> :bp<CR>
nnoremap <C-Right> :bn<CR>
" Colors
syntax enable
set background=dark
let g:solarized_visibility = "high"
colorscheme solarized
" Spaces & Tabs
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set shiftwidth=4
set expandtab " tabs are spaces
" UI
set cursorline " highlight current line
filetype indent on " load filetype-specific indent files
set wildmenu " visual autocomplete options
set lazyredraw " redraw only if needed
set showmatch " highlight matching brackets and stuff
" Search
set incsearch " search as characters are entered
set hlsearch " highlight matches
set ignorecase " case insensitive search
" Folding
set foldenable
" NERDTree
let NERDTreeQuitOnOpen = 1
let NERDTreeShowHidden = 1
let NERDTreeIgnore = ['\.pyc$', '__pycache__$', '\~$']
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
" vim-airline
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline_theme = 'wombat'
" Python
let python_highlight_all = 1
let python_space_error_highlight = 1
" Makefile
autocmd FileType make set noexpandtab shiftwidth=8 softtabstop=0
@reinaldons
Copy link
Author

Currently using on Vim 8.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment