vimrc update
This commit is contained in:
parent
a0074b71d9
commit
a310d897a7
4
vim_skeletons/class.py
Normal file
4
vim_skeletons/class.py
Normal file
@ -0,0 +1,4 @@
|
||||
class (object):
|
||||
def __init__(self):
|
||||
pass
|
||||
|
45
vimrc
45
vimrc
@ -2,8 +2,39 @@
|
||||
" General Options
|
||||
"
|
||||
" Disable compatibility mode
|
||||
"set nocp
|
||||
set nocompatible
|
||||
|
||||
"
|
||||
" File-Menu
|
||||
"
|
||||
" Enable plugin
|
||||
filetype plugin on
|
||||
" Search down into subfolders. Provides tab-completion for all file-related tasks
|
||||
set path+=**
|
||||
|
||||
"
|
||||
" Tagging (^] go to tag source, ^t go back)
|
||||
"
|
||||
command! MakeTags !ctags -R .
|
||||
|
||||
"
|
||||
" File Browsing
|
||||
"
|
||||
let g:netrw_banner=0 " disable annoying banner
|
||||
let g:netrw_browse_split=4 " open in prior window
|
||||
let g:netrw_altv=1 " open splits to the right
|
||||
let g:netrw_liststyle=3 " tree view
|
||||
let g:netrw_list_hide=netrw_gitignore#Hide()
|
||||
let g:netrw_list_hide.=',\(^}|\s\s)\zs\.\S\+'
|
||||
" Now WE CAN:
|
||||
" - edit a folder to open a file browser
|
||||
" - <CR>/v/t to open in an h-split/v-spli/tab
|
||||
" - check |netrw-browse-maps| for more mappings
|
||||
|
||||
"
|
||||
" Snippets
|
||||
"
|
||||
nnoremap ,pyclass :-1read $HOME/.vim/skeletons/class.py<CR>6l
|
||||
"
|
||||
" Indent Options
|
||||
"
|
||||
@ -12,13 +43,13 @@ set autoindent
|
||||
" Convert tabs to spaces.
|
||||
set expandtab
|
||||
" Enable indentation rules that are file-type specific.
|
||||
"set filetype indent on
|
||||
"filetype indent on
|
||||
" When shifting lines, round the indentation to the nearest multiple of "shiftwidth."
|
||||
set shiftround
|
||||
"set shiftround
|
||||
" When shifting, indent using four spaces.
|
||||
set shiftwidth=4
|
||||
"set shiftwidth=4
|
||||
" Insert "tabstop" number of spaces when the "tab" key is pressed.
|
||||
set smarttab
|
||||
"set smarttab
|
||||
" Indent using four spaces.
|
||||
set tabstop=4
|
||||
|
||||
@ -97,7 +128,7 @@ set statusline+=\ [0x%B]\ " ASCII hex code u
|
||||
" Always show cursor position.
|
||||
"set ruler
|
||||
" Display command line's tab complete options as a menu.
|
||||
"set wildmenu
|
||||
set wildmenu
|
||||
" Maximum number of tab pages that can be opened from the command line.
|
||||
"set tabpagemax=50
|
||||
" Change color scheme.
|
||||
@ -159,4 +190,4 @@ set history=1000
|
||||
" Enable spellchecking.
|
||||
"set spell
|
||||
" Ignore files matching these patterns when opening files based on a glob pattern.
|
||||
"set wildignore+=.pyc,.swp
|
||||
set wildignore+=.pyc,.swp
|
||||
|
Loading…
x
Reference in New Issue
Block a user