总结一下:java
ubuntu桌面有快捷键,主要是使用alt;ubuntu
terminal有新建窗口、在窗口间切换、分割窗口、全屏显示、调整大小快捷键;vim
shift+insert能够从系统复制到terminal,分割窗口能够从一个文件到另外一个文件;cors
mkdir 能够新建文件夹,rm 能够删除文件,touch 新建文件;ui
:reg查看寄存器内容,安装gnome才能看见+寄存器,复制粘贴的时候选定,而后“+y就能够了,不要加冒号,不会在最下一行显示命令;spa
vim中有很强大的map;ip
cd ~ vi .vimrc编辑配置;ci
按v 进入visual模式,C-v进入visual block模式,shift-v进入visual line模式;rem
vim的命令默认不显示,set showcmd;terminal
编辑高亮显示时首先须要开启高亮,set corsorline;
set backspace=2重启后就可让backspace键在insert模式下删除了;
vim真是太强了!
vim配置备份1:
set number
set nowrap
set scrolloff=3
set hlsearch
“set mouse=a
set ruler
set completeopt=preview,menu
set confirm
set cindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set backspace=2
set showmatch
set novisualbell
set matchtime=1
set fillchars=vert:\ ,stl:\ ,stlnc:\
set clipboard+=unnamed
:set makeprg=g++\ -Wall\ \ %
syntax on
autocmd FileType c,cpp map<buffer> <leader><space> :w<cr>:make<cr>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-H> <C-W><C-H>
map<M-F2> :tabnew<CR>
map<F3> :tabnew .<CR>
map<C-F3> /be
map<F5> :call CompileRunGcc()<CR>
func! CompileRunGcc()
exec 'w'
if &filetype=='c'
exec "!g++ % -o %<"
exec "!./%<"
elseif &filetype=='cpp'
exec "!g++ % -o %<"
exec "! ./%<"
elseif &filetype=='java'
exec "!javac %"
exec "!java %<"
elseif &filetype=='sh'
:!./%
endfunc
配置备份2:
syntax onset numberset shiftwidth=4set tabstop=4set scrolloff=3set hlsearchset rulerset confirmmap<C-A> ggVG"+ymap<F5> :call Run()<CR>func! Run() exec "w" exec "!g++ -Wall % -o %<" exec "!./%<"endfuncset cursorlinehighlight CursorLine cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE