-
Make CapsLock work as Esc
setxkbmap -option caps:escape
-
Remove gdb warranty message
alias gdb="gdb --silent"
-
Copy file to clipboard
xclip -sel c < file
-
Change keyboard language
setxkbmap us|br
-
Compile the program. If there are any errors, the cursor is moved to the first one
:make file
-
Go to the next error
:cnext
-
Show full error message
:cc
-
Show the list of errors
:clist
-
Split horizontaly
:split
Ctrl-w s
-
Split verticaly
:vsplit
Ctrl-w v
" show line numbers (nu)
set number
" display relative line numbers instead of absolute (rnu)
set relativenumber
" the width of indent for operations like << and >> (sw)
set shiftwidth=4
" display size of the tab character (ts)
set tabstop=4
" use the indentation of the current line when creating a new one (ai)
set autoindent
" constantly show the file name (ls)
set laststatus=2
"" not used
" show folds in a column (fdc)
set foldcolumn=4
" fold by indent (fdm)
set foldmethod=indent
" set vim colorscheme (colo)
colorscheme delek
" autoindent when typing { and }
set smartindent
" number of spaces that a tab counts when typing <TAB> (sts)
set softtabstop=4
" inserted tabs turn into spaces (et)
set expandtab
" show information about the current position (activated by default, but just
" in case)
set ruler
" show tabs and trailing spaces
set list