Last active
January 19, 2022 16:04
-
-
Save reinaldons/a997ae8a0c4b7d4c9cbd52a90390b171 to your computer and use it in GitHub Desktop.
My VIM as Python IDE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently using on Vim 8.2.