Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
#!/usr/local/bin/zsh | |
vimfolder=~/.vim | |
target=.vim(:a) | |
# verificando se o link simbólico da pasta ~/.vim já está montado. | |
if [[ -h $vimfolder ]]; then | |
print '"'$vimfolder'" já existe.' | |
else | |
print 'montando link simbólico "'$vimfolder'" -> "'$target'"' | |
ln -s .vim(:a) ~/.vim |
#!/usr/local/bin/zsh | |
f1 () { | |
local a=$1 | |
local b=$2 | |
local c; | |
let "c=$1+$2" | |
print $c | |
} |
#!/usr/local/bin/zsh | |
#location of default vim folder | |
vimfolder=~/.vim | |
#path of local .vim folder | |
target=.vim | |
foo() { | |
# seria a mesma coisa que $1(:a) |
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Operador oper = new Operador(); | |
Transacao utx2 = null; | |
utx2 = GerenciadorTransacoes.getInstancia().getTransacao(); | |
utx2.begin(); | |
try { | |
oper = FachadaPessoal.getInstancia().buscarOperador(operadorNome); | |
utx2.rollback(); | |
} catch (BCRepositorioException re) { | |
throw new BCObjetoInvalidoException(FachadaProcorf.RESOURCE_BUNDLE, |
#!/bin/bash | |
# Build Zsh from sources on Ubuntu. | |
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file. | |
# Make script gives up on any error | |
set -e | |
# Some packages may be missing | |
sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo checkinstall |
Answer by Jim Dennis on Stack Overflow question http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118
Your problem with Vim is that you don't grok vi.
You mention cutting with yy and complain that you almost never want to cut whole lines. In fact programmers, editing source code, very often want to work on whole lines, ranges of lines and blocks of code. However, yy is only one of many way to yank text into the anonymous copy buffer (or "register" as it's called in vi).
The "Zen" of vi is that you're speaking a language. The initial y is a verb. The statement yy is a simple statement which is, essentially, an abbreviation for 0 y$:
0 go to the beginning of this line. y yank from here (up to where?)
# Terminal output control (http://www.termsys.demon.co.uk/vtansi.htm) | |
TC='\e[' | |
CLR_LINE_START="${TC}1K" | |
CLR_LINE_END="${TC}K" | |
CLR_LINE="${TC}2K" | |
# Hope no terminal is greater than 1k columns | |
RESET_LINE="${CLR_LINE}${TC}1000D" |
SOLARIZED | HEX | 16/8 | TERMCOL | XTERM | HEX | L*A*B |
RGB | HSB | GNU screen |
---|---|---|---|---|---|---|---|---|---|
base03 | #002b36 | 8/4 | brblack | 234 | #1c1c1c | 15,-12,-12 |
0,43,54 |
193,100,21 |
K |
base02 | #073642 | 0/4 | black | 235 | #262626 | 20,-12,-12 |
7,54,66 |
192,90,26 |
k |
base01 | #586e75 | 10/7 | brgreen | 240 | #585858 | 45,-07,-07 |
88,110,117 |
194,25,46 |
G |
base00 | #657b83 | 11/7 | bryellow | 241 | #626262 | 50,-07,-07 |
101,123,131 |
195,23,51 |
Y |
base0 | #839496 | 12/6 | brblue | 244 | #808080 | 60,-06,-03 |
131,148,150 |
186,13,59 |
B |
base1 | #93a1a1 | 14/4 | brcyan | 245 | #8a8a8a | `65,-05 |
#!/bin/bash | |
yum groupinstall 'Development tools' -y | |
yum install ncurses ncurses-devel -y | |
git clone --depth 1 https://github.com/vim/vim.git | |
cd vim | |
./configure --prefix=/usr --with-features=huge --enable-pythoninterp --enable-multibyte | |
make | |
sudo make install |