i " вставить текст до курсора
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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Maintainer: | |
" Amir Salihefendic | |
" http://amix.dk - amix@amix.dk | |
" | |
" Version: | |
" 5.0 - 29/05/12 15:43:36 | |
" | |
" Blog_post: | |
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github |
Такого еще не было на данном ресурсе, и надеюсь, что сообщество поддержит инициативу. Есть предложение, сделать живую статью, в которой все мы будем выкладывать клавиатурные сочетания, которые каждый из нас использует в повседневной работе с Vim. Я обязуюсь анализировать комментарии и добавлять в статью новые клавиатурные сочетания. Если клавиатурное сочетание использует какой-то плагин, то указываем его имя.
- ge - перейти к концу предыдущего слова
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
#!/bin/bash | |
usage() { | |
cat <<EOF | |
usage: git gone [-pldD] [<branch>=origin] | |
OPTIONS | |
-p prune remote branch | |
-n dry run: list the gone branches | |
-d delete the gone branches | |
-D delete the gone branches forcefully |
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
# lua compiling have some problems | |
# if OS 64 then lib64 in path | |
./configure --prefix="$HOME/vimp" \ | |
--with-tlib=ncurses \ | |
--with-ruby-command=ruby \ | |
--with-tclsh=/usr/bin/tclsh8.6 \ | |
--with-python3-config-dir=/usr/lib/python3.7/config \ | |
--with-python-config-dir=/usr/lib/python2.7/config \ | |
--with-luajit \ | |
--with-lua-prefix=/usr/include \ |
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
# cgit setup for Apache that results in completely clean URLs, ie. | |
# visiting http://git.example.org/ will produce the cgit index page | |
<VirtualHost *> | |
# this part is stand fare | |
ServerName git.example.org | |
DocumentRoot /var/www/htdocs/cgit/ | |
<Directory "/var/www/htdocs/cgit/"> | |
AllowOverride None | |
Options ExecCGI | |
Order allow,deny |
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
—– BEGIN LICENSE —– | |
K-20 | |
Single User License | |
EA7E-940129 | |
3A099EC1C0B5C7C5 33EBF0CF BE82FE3B |
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
# remove current vim | |
sudo zypper rm vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
# removes current link for vim | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
# installs everything needed to make/configure/build Vim | |
sudo zypper in \ | |
lua51-luajit \ | |
lua51-luajit-devel \ |
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
"-------------------------------------------------------" | |
function! CreateCenteredFloatingWindow() | |
let width = min([&columns - 4, max([80, &columns - 20])]) | |
let height = min([&lines - 4, max([20, &lines - 10])]) | |
let top = ((&lines - height) / 2) - 1 | |
let left = (&columns - width) / 2 | |
let opts = {'relative': 'editor', 'row': top, 'col': left, 'width': width, 'height': height, 'style': 'minimal'} | |
let top = "╭" . repeat("─", width - 2) . "╮" | |
let mid = "│" . repeat(" ", width - 2) . "│" |
OlderNewer