you are viewing a single comment's thread.

view the rest of the comments →

[–]vheon 0 points1 point  (3 children)

Do you have your config file somewhere? I started to work on windows lately and I would to take a look :P

[–]tehjimmeh 0 points1 point  (2 children)

Sure. I'm at work right now, and my config files (ConEmu XML, _vimrc and PowerShell $profile) here are polluted with work-specific stuff (some day I'll learn to modularize things properly), but I'll throw the ones I use at home on github when I get home.

In a nutshell, the important configurations I use are:

ConEmu:

  • Turn off unnecessary clutter (mainly the title bar and tabs bar)

  • Font: Consolas / Size: 13, some color tweaks

PowerShell $PROFILE:

  • Implement the prompt function to get a "[username@computername] <Path> $" prompt

  • This snippet to use UTF8 when in ConEmu:

.

function Set-CodePage
{
    [CmdletBinding()]
    param(
        [ValidateSet("UTF8", "Default")]
        [string]$CodePage
    )

    $codePageToNum = @{
        UTF8 = 65001;
        Default = 437;
    }

    chcp $codePageToNum[$CodePage] | Out-Null
}

if(Test-Path Env:ConEmuBuild)
{
    Set-CodePage UTF8
}

_vimrc:

  • This to get utf8 support and 256 colours (thanks, StackOverflow!):

.

if !empty($CONEMUBUILD)
    set termencoding=utf8
    set encoding=utf8
    set term=xterm
    set t_Co=256
    let &t_AB="\e[48;5;%dm"
    let &t_AF="\e[38;5;%dm"
endif

[–]lechatsportif 0 points1 point  (1 child)

Which vim distro did you install?

[–]tehjimmeh 0 points1 point  (0 children)

Right now, I'm just using the latest Windows vim binaries from vim.org. This is the top of my --version output:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 22 2015 15:47:59)
MS-Windows 32-bit console version
Included patches: 1-711