4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 3 / 5
Newer►
96 results tagged vim x
  • thumbnail
    Sort lines | Vim Tips Wiki | Fandom powered by Wikia

    vim <3

    :sort u

    November 21, 2016 at 5:35:31 PM GMT+1 - permalink - archive.org - http://vim.wikia.com/wiki/Sort_lines
    sort vim
  • Fugitive.vim - working with the git index

    je découvre ce plugin vim qui a l'air juste magique pour interagir avec git

    November 16, 2016 at 2:22:37 PM GMT+1 - permalink - archive.org - http://vimcasts.org/episodes/fugitive-vim-working-with-the-git-index/
    git plugin vim
  • Note: vimdiff and included colorscheme

    They all sux to visualize difference EXCEPT:
    1) murphy
    2) torte

    :colorscheme murphy

    June 23, 2016 at 3:40:27 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?3de1_g
    color vim vimdiff
  • Select rectangular screen area | commandlinefu.com

    Peut etre utile pour cc à la souris dans un split vim ou screen!

    Aussi pour cc plusieurs lignes dans vim sans prendre la column number :)

    January 11, 2016 at 11:47:09 AM GMT+1 - permalink - archive.org - http://www.commandlinefu.com/commands/view/15021/select-rectangular-screen-area
    screen selection terminal tips vim
  • thumbnail
    A vim Tutorial and Primer

    Encore un bon article sur vim

    October 2, 2015 at 11:30:02 AM GMT+2 - permalink - archive.org - https://danielmiessler.com/study/vim/?fb_ref=118ef0e03ab54c0d8197214328648a68-Hackernews
    tuto vim
  • thumbnail
    Easier buffer switching - Vim Tips Wiki

    Pour changer de buffer, je faisais :
    :ls (pour récupérer la liste des buffers et trouver le numéro du buffer)
    :b5 (pour switcher sur le buffer 5)

    Pas trop pratique, du coup une alternative sympa :

    Put the following in your vimrc:

    set wildchar=<Tab> wildmenu wildmode=full

    Ensuite il suffit de faire :
    :b <tab>

    Pour avoir la liste des buffers et itérer dessus avec tab jusqu'à être sur le bon puis <Enter>

    October 2, 2015 at 11:05:19 AM GMT+2 - permalink - archive.org - http://vim.wikia.com/wiki/Easier_buffer_switching
    buffer vim
  • Insérer de l'ascii dans vim

    en mode insert : ^V et le code ascii

    exemple :ctrl V 003

    June 19, 2015 at 3:22:24 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?a268SQ
    ascii vim
  • Habit breaking, habit making

    Habit breaking, habit making
    Feb 6, 2013

    Moving your Vim cursor around using the arrow keys is a bad habit, and like many bad habits it’s a difficult one to break!

    Putting these lines into your vimrc can help:

    noremap <Up> <NOP>
    noremap <Down> <NOP>
    noremap <Left> <NOP>
    noremap <Right> <NOP>

    This snippet causes each of the arrow keys to execute no operation, or in other words: it disables them. Next time you move your hand to the arrow keys you’ll find that nothing happens when you press them. That should remind you to move your hand back where it belongs: on the home row, where h, j, k, and l keys are waiting for you. Alternatively, you could use the konami code version of this snippet.

    Learning to operate Vim without leaving the home row is the first rite of passage. If you’re still in the habit of moving around using the arrow keys, then you should disable them today.
    Stop using the h, j, k, l keys!

    There’s nothing slower than moving one line or column at a time. Vim provides dozens of motions for moving around quickly, so it’s no exageration to say that holding down j is a Vim anti-pattern.

    Learning Vim is not unlike studying a foreign language, where adding a word to your vocabulary increases the number of things that you can say. It takes time and practice to pick up Vim’s motions, but every time you add a motion to your repertoire you’ll discover scenarios where it can save you time and keystrokes.

    For the sake of learning, let’s say that it’s a bad habit to use the h, j, k, and l motions. In that case, you should disable them by putting this snippet in your vimrc:

    noremap h <NOP>
    noremap j <NOP>
    noremap k <NOP>
    noremap l <NOP>

    Not being able to move one line or column at a time will force you to use other motions to get around. If that sounds scary to you, let me introduce a couple of the most useful motions. Learning these won’t take a lot of effort, and the payback will be huge.
    Wordwise motions are 5x faster than h and l

    The w, b, e, and ge commands allow us to move forward or backward to the start or end of a word. The W, B, E, and gE commands do the same for a WORD (see :help word for the difference between words and WORDs). If we say that the average word length is 5 letters, then moving back and forward a word at a time is approximately five times faster than using h and l to move a character at a time.

    Start off by adding w and b to your repertoire. These move forward and back to the start of a word. When you find yourself wanting to get to the end of a word, add e and ge to your repertoire.
    Character search is near-instant for moving within a line

    The f, F, t, T, ;, and , commands make up the suite of character search motions. When you press f{char}, Vim looks forward from the cursor position for the next occurrence of {char} on the current line. If it finds a match, the cursor moves directly there. If no match is found, nothing happens. (Vim might beep at you, but you can mute that by setting ‘visualbell’.)

    Try this: in Vim, move your cursor to the beginning of a line with lots of text on it. Look ahead for a character that occurs with low frequency, such as a punctuation mark or uppercase letter. Press f followed by the character that you picked. That’s two keystrokes. Are you there yet?

    If your cursor stopped on a match before the one you were aiming for, press ; to repeat the search. Keep pressing ; until you hit your mark. If you overshoot, press , to reverse the search.

    For uncommon characters, you can usually hit your target from a distance with only 2 keystrokes. Common characters aren’t such easy targets for this method, so it helps to think like a Scrabble player!

    The character search commands allow for efficient navigation within the current line. I use them all the time! If these motions are not a part of your repertoire, then you owe it to yourself to get practicing with them. Character search allows you to move around close to the speed of thought.
    Use h and l for off-by-one errors

    Sometimes, I’ll accidentally use f{char} when I should have used t{char}, which places me one character away from where I wanted to be. Or perhaps I’ll use f{char} to target an uncommon character that’s adjacent to the common character I actually want to hit. I refer to these scenarios as off-by-one errors. I consider them to be one of the few occasions where it’s acceptable to use the h or l motion.
    Use <NOP> mappings to break bad habits

    I’m not really suggesting that you permanently disable the h, j, k, and l keys. After all, they’re necessary for correcting those off-by-one errors. But if you’re having a slow day at work, then disabling h, j, k, and l for the afternoon could make things more interesting. If it forces you out of your comfort zone and encourages you to use wordwise motions, character searches, and other motions, then it counts as a useful exercise.
    Meet hardmode

    If this sounds like a worthwhile challenge, you might want to install the hardmode plugin (which I heard about from Rob Miller at Vim London). This provides convenience commands for enabling and disabling the h, j, k, l, and arrow keys in one go. To disable cursorwise motions, run:

    :call HardMode()

    If it gets too difficult, you can wimp out and re-enable these keys by running:

    :call EasyMode()
    You are weak...

    June 10, 2015 at 12:03:25 PM GMT+2 * - permalink - archive.org - http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/
    arrow motion vim
  • thumbnail
    CtrlP root markers

    J'utilisais jusqu'à présent aucun plugin vim.. mais l'ouverture de fichier et le switch entre les différents buffers est pénible quand on passe beaucoup de temps dans Vim..

    Du coup je teste ctrlP qui est plutot bien une fois configuré !

    J'utilise pathogen pour gérer mes plugins, donc dans l'ordre :

    • il faut installer pathogen
    • ensuite installer ctrlp

    Dans le vimrc :

    "" CtrlP
    map <c-b> :CtrlPBuffer<CR>
    map <c-p> :CtrlP<CR>

    on a ctrl+B pour naviguer entre les buffers et ctrl+P pour lancer une recherche et ouvrir un fichier

    La root de la recherche peut être modifié (par défaut c'est le dossier du fichier ouvert en cours)

    On peut lui dire par exemple de remonter jusqu'au .git ou au .svn

    Dans mon cas, encore en svn 1.6, il y a un .svn à tous les niveaux... la solution, définir un root marker dans son vimrc :

    let g:ctrlp_root_markers = ['.ctrlp']

    et ensuite créer ce marker là ou on veut que la recherche se base

    $ touch .ctrlp

    March 12, 2015 at 11:39:32 AM GMT+1 - permalink - archive.org - https://coderwall.com/p/5xv7sq/ctrlp-root-markers
    ctrlp vim
  • Vim Awesome
    January 1, 2015 at 3:13:39 PM GMT+1 - permalink - archive.org - http://vimawesome.com/
    vim
  • Quelques trucs avec ViM #2 (linux, truc, ubuntu, vim) - Damien Pobel / blog
    January 1, 2015 at 2:42:31 PM GMT+1 - permalink - archive.org - http://damien.pobel.fr/post/quelques-trucs-avec-vim-2
    vim
  • Any word completion - Vim Tips Wiki

    ctrl+n en mode édition pour autocomplete le mot qu'on est en train d'écrire

    se base sur les mot présent dans le fichier

    ctrl+p pour autocomplete en parcourant dans le sens inverse

    July 8, 2014 at 5:37:58 PM GMT+2 - permalink - archive.org - http://vim.wikia.com/wiki/Any_word_completion
    tips vim
  • thumbnail
    A Vim Tutorial and Primer
    June 16, 2014 at 11:06:19 PM GMT+2 - permalink - archive.org - http://www.danielmiessler.com/study/vim/
    vim
  • Vi and Vim Macro Tutorial: How To Record and Play

    J'avais une ligne de conf à dupliquer X fois en incrémentant seulement un chiffre à chaque fois... m'a fait gagné du temps ;)

    qa (on commence le record dans le register a)
    yy (là j'enchaine les actions à repéter)
    p
    ^
    se déplacer jusqu'au chiffre en question puis c^a
    q (pour stop record)

    puis on rejoue 15 fois : 15@a

    June 11, 2014 at 3:04:01 PM GMT+2 - permalink - archive.org - http://www.thegeekstuff.com/2009/01/vi-and-vim-macro-tutorial-how-to-record-and-play/
    macro record vim
  • TupperVim - Mozilla Francophone

    faut que je test :D

    March 1, 2014 at 8:30:07 PM GMT+1 - permalink - archive.org - http://wiki.mozfr.org/TupperVim
    vim
  • Vim tips : changer le comportement de l'autocompletion avec tab

    en ex mode, quand on veut ouvrir un autre fichier avec :split ou :vsplit par exemple, l'autocompletion ne se comporte pas de la meme maniere qu'en shell. Pour avoir le même comportement :

    set wildmode=longest,list

    tab ne va plus afficher le premier match, mais la liste des match possibles :)

    February 26, 2014 at 11:51:15 AM GMT+1 - permalink - archive.org - https://links.infomee.fr/?eMhXTQ
    tips vim
  • Vim tips : Alternative pour commenter plusieurs lignes

    avec une ex command :
    Faites une selection avec V
    Puis :normal I//<enter>

    d'une maniere générale, avec :normal on peut utiliser une "normal command"
    Couplé avec un range comme :5,15 ça devient cool
    Et encore plus avec un range "visuel" :'<,'> qu'on obtient avec un V

    February 26, 2014 at 10:59:11 AM GMT+1 - permalink - archive.org - https://links.infomee.fr/?Eb2bGQ
    tips vim
  • vim tips : scroller sur une ligne

    Quand on est en :set nowrap, une ligne dans le fichier va prendre seulement une ligne dans vim. Donc la fin de la ligne va être cachée.

    Pour voir ce qui est caché rapidement, on peut aller à la fin de la ligne : $
    Ou bien scroller d'une demi-page vers la droite avec : zL
    Pour scroller d'un seul caractere vers la droite: zl

    Pour revenir au début de la ligne, on a le choix : 0 ou ^
    Ou bien en scrollant : zH ou zh

    February 24, 2014 at 1:31:33 PM GMT+1 - permalink - archive.org - https://links.infomee.fr/?lwmVEg
    tips vim
  • thumbnail
    wombat

    Sympa à tester

    via arnaudb

    February 13, 2014 at 11:00:56 AM GMT+1 - permalink - archive.org - https://github.com/vim-scripts/Wombat
    color vim
  • Using the changelist and jumplist

    le screencast du jour bien powerful

    Pour naviguer dans l'historique des jumps dans vim, en normal mode :
    ctrl-o
    ctrl-i

    February 11, 2014 at 1:20:02 PM GMT+1 - permalink - archive.org - http://vimcasts.org/episodes/using-the-changelist-and-jumplist/
    vim
Links per page: 20 50 100
◄Older
page 3 / 5
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation